package com.petsdar.pojo;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 * User: heroC
 * Date: 2020/6/27
 * Time: 18:02
 * Description: 最高权限登录账户类
 * Version: V1.0
 */
@Component
public class Account implements Serializable {
    private static final long serialVersionUID = 62718021130L;
    /** 账户ID */
    private BigInteger id;
    /** 最高权限账户登录名 */
    private String userName;
    /** 最高权限账户密码 */
    private String password;
    /** 最高权限账户信息创建时间 */
    private Date createTime;
    /** 最高权限账户信息更新时间 */
    private Date updateTime;
    /** 登录通行ID*/
    private String passID;

    public Account() {
    }

    public Account(BigInteger id,
                   String userName,
                   String password,
                   Date createTime,
                   Date updateTime,
                   String passID) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.passID = passID;
    }

    public Account(BigInteger id,
                   String userName,
                   String password,
                   Date updateTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.updateTime = updateTime;
    }

    public Account(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPassID() {
        return passID;
    }

    public void setPassID(String passID) {
        this.passID = passID;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
